package com.example.tse.rbhttpservice.service.goods.model;

import java.util.List;
import java.util.ArrayList;
import com.example.tse.rbhttpservice.service.RudderResponse;


/**
* 获取不同类型的商品详情（类型有普通商品、秒杀商品、新品特卖、即将开售］），只包含商品的基本信息（价格、库存、限购等除外），秒杀商品需要秒杀状态（需要根据状态显示不同按钮）或倒计时，特卖商品中商品价格为特卖专门设置的价格，即将开售商品显示开售提醒按钮，分享的数据是商品第一张图＋商品名称＋固定描述文字＋链接
* @author wliu
* edit tse
*/
public class GoodsGetSpecs extends RudderResponse{

private String specId = "";


private String specName = "";


private List<GoodsGetSpecsSpecValues> specValues = new ArrayList<GoodsGetSpecsSpecValues>();


/**
* @return specId
*/
public String getSpecId() {
return this.specId;
}

/**
* @return specId
*/
public void setSpecId(String specId) {
this.specId = specId;
}
/**
methodName    SpecId
type          String
name          specId
defaultType   ""
*/

/**
* @return specName
*/
public String getSpecName() {
return this.specName;
}

/**
* @return specName
*/
public void setSpecName(String specName) {
this.specName = specName;
}
/**
methodName    SpecName
type          String
name          specName
defaultType   ""
*/

/**
* @return specValues
*/
public List<GoodsGetSpecsSpecValues> getSpecValues() {
return this.specValues;
}

/**
* @return specValues
*/
public void setSpecValues(List<GoodsGetSpecsSpecValues> specValues) {
this.specValues = specValues;
}
/**
methodName    SpecValues
type          List<GoodsGetSpecsSpecValues>
name          specValues
defaultType   new ArrayList<GoodsGetSpecsSpecValues>()
*/

/**


    private static void filterFor(GoodsGetSpecsSpecValues goods) {
        if (goods.getProductId() == null) {
            goods.setProductId("");
        }
        if (goods.getSpecValue() == null) {
            goods.setSpecValue("");
        }
    }

    public static void filter(GoodsGetSpecs goods) {
        if (goods.getSpecId() == null) {
            goods.setSpecId("");
        }
        if (goods.getSpecName() == null) {
            goods.setSpecName("");
        }
        if (goods.getSpecValues() == null) {
            goods.setSpecValues(new ArrayList<GoodsGetSpecsSpecValues>());
        } else {
            for (GoodsGetSpecsSpecValues item : goods.getSpecValues()) {
                filterFor(item);
            }
        }
    }

*/

}
